package com.wh.wisdomsite.xbox.utils.tree.model;


import java.io.Serializable;
import java.util.List;

/**
 * 构建EasyUI属性结构实体模型
 * @Package com.wh.wisdomsite.xbox.utils.tree.model
 * @author 谢泽鹏
 * @date 2014年10月8日 下午4:02:14
 * @Copyright 个人版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2014
 * @version V1.0
 */
public class ENode implements Serializable {

    /**
     * xx节点ID(通常指主键)
     */
    private Integer id;

    /**
     * 父节点ID(主从关系编号)
     */
    private Integer parentId;

    /**
     * 显示文本
     */
    private String text;

    /**
     * 图标
     */
    private String iconCls;

    /**
     * 状态
     */
    private String state = "open";


    /**
     * 链接地址
     */
    private String url;

    /**
     * 是否选中
     */
    private boolean checked = false;

    /**
     * 子节点
     */
    private List<ENode> children;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public List<ENode> getChildren() {
        return children;
    }

    public void setChildren(List<ENode> children) {
        this.children = children;
    }
}
